Merge pull request #41 in CASA/casa6 from CAS-12821 to master
* commit '1e75467f35daa4513fd840e3b81de636ca437604':
access __code__ attribute directly instead of the access via inspect module
fixed an error in add_history
add nrobeamaverage task CAS-12821