Simplify and fix _get_module_from_frame
Simplify and fix _get_module_from_frame

MSeifert04/astropy,mhvk/astropy,astropy/astropy,aleksandr-bakanov/astropy,saimn/astropy,aleksandr-bakanov/astropy,lpsinger/astropy,astropy/astropy,stargaser/astropy,pllim/astropy,astropy/astropy,stargaser/astropy,larrybradley/astropy,lpsinger/astropy,dhomeier/astropy,mhvk/astropy,larrybradley/astropy,larrybradley/astropy,StuartLittlefair/astropy,larrybradley/astropy,MSeifert04/astropy,lpsinger/astropy,saimn/astropy,lpsinger/astropy,pllim/astropy,dhomeier/astropy,pllim/astropy,lpsinger/astropy,larrybradley/astropy,saimn/astropy,bsipocz/astropy,aleksandr-bakanov/astropy,stargaser/astropy,astropy/astropy,bsipocz/astropy,StuartLittlefair/astropy,stargaser/astropy,mhvk/astropy,StuartLittlefair/astropy,MSeifert04/astropy,dhomeier/astropy,saimn/astropy,StuartLittlefair/astropy,mhvk/astropy,pllim/astropy,saimn/astropy,mhvk/astropy,aleksandr-bakanov/astropy,MSeifert04/astropy,bsipocz/astropy,dhomeier/astropy,bsipocz/astropy,StuartLittlefair/astropy,pllim/astropy,astropy/astropy,dhomeier/astropy