{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/facebook-python-ads-sdk/issues/198","repository_url":"https://api.github.com/repos/facebook/facebook-python-ads-sdk","labels_url":"https://api.github.com/repos/facebook/facebook-python-ads-sdk/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/facebook/facebook-python-ads-sdk/issues/198/comments","events_url":"https://api.github.com/repos/facebook/facebook-python-ads-sdk/issues/198/events","html_url":"https://github.com/facebook/facebook-python-ads-sdk/issues/198","id":154816357,"number":198,"title":"Move all imports to top of file","user":{"login":"tejasmanohar","id":5959235,"avatar_url":"https://avatars.githubusercontent.com/u/5959235?v=3","gravatar_id":"","url":"https://api.github.com/users/tejasmanohar","html_url":"https://github.com/tejasmanohar","followers_url":"https://api.github.com/users/tejasmanohar/followers","following_url":"https://api.github.com/users/tejasmanohar/following{/other_user}","gists_url":"https://api.github.com/users/tejasmanohar/gists{/gist_id}","starred_url":"https://api.github.com/users/tejasmanohar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tejasmanohar/subscriptions","organizations_url":"https://api.github.com/users/tejasmanohar/orgs","repos_url":"https://api.github.com/users/tejasmanohar/repos","events_url":"https://api.github.com/users/tejasmanohar/events{/privacy}","received_events_url":"https://api.github.com/users/tejasmanohar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-13T23:02:36Z","updated_at":"2016-05-14T05:56:46Z","closed_at":"2016-05-13T23:43:23Z","body":"https://github.com/facebook/facebook-python-ads-sdk/blob/master/facebookads/adobjects/campaign.py\r\n\r\nSome imports in this package are scoped within functions. This means that on each function call the import is executed, which seems less than ideal for performance reasons (load once vs load every call). Maybe all should be at the top of the file? It's also unconventional afaict."},"comment":{"url":"https://api.github.com/repos/facebook/facebook-python-ads-sdk/issues/comments/219202833","html_url":"https://github.com/facebook/facebook-python-ads-sdk/issues/198#issuecomment-219202833","issue_url":"https://api.github.com/repos/facebook/facebook-python-ads-sdk/issues/198","id":219202833,"user":{"login":"tejasmanohar","id":5959235,"avatar_url":"https://avatars.githubusercontent.com/u/5959235?v=3","gravatar_id":"","url":"https://api.github.com/users/tejasmanohar","html_url":"https://github.com/tejasmanohar","followers_url":"https://api.github.com/users/tejasmanohar/followers","following_url":"https://api.github.com/users/tejasmanohar/following{/other_user}","gists_url":"https://api.github.com/users/tejasmanohar/gists{/gist_id}","starred_url":"https://api.github.com/users/tejasmanohar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tejasmanohar/subscriptions","organizations_url":"https://api.github.com/users/tejasmanohar/orgs","repos_url":"https://api.github.com/users/tejasmanohar/repos","events_url":"https://api.github.com/users/tejasmanohar/events{/privacy}","received_events_url":"https://api.github.com/users/tejasmanohar/received_events","type":"User","site_admin":false},"created_at":"2016-05-14T05:56:46Z","updated_at":"2016-05-14T05:56:46Z","body":"example?"}}