Python Function Return Byte Array