Pep8 and basic API implementations for  media