BUGFIX: deepcopy of axes_manager
Automatic style corrections courtesy of autopep8
ENH: add test for the two bugs
Automatic style corrections courtesy of autopep8